<ion-header>
    <ion-navbar class="nav-calm">
        <ion-title>出入库</ion-title>
    </ion-navbar>
</ion-header>

<ion-content padding>
    <div class="button-bar header-btn">
        <a class="button" (click)="ToStoragePage()">出库单</a>
        <a class="button act">收货记录</a>
    </div>
    <div class="sea">
        <ion-item class="item-input">
            <ion-input type="text" [(ngModel)]="keyword"></ion-input>
        </ion-item>
        <div class="clearInput" (click)="clearInput()" *ngIf="keyword"></div>
        <div class="search" (click)="search()"></div>
    </div>
    <ion-refresher (ionRefresh)="doRefresh($event)">
        <ion-refresher-content
                pullingIcon="arrow-dropdown"
                pullingText="刷新中.."
                refreshingSpinner="circles"
                refreshingText="刷新中..">
        </ion-refresher-content>
    </ion-refresher>
    <div class="mlist" *ngIf="hasStorage">
        <div class="mitem" *ngFor="let item of myItems; let i = index">
            <div class="mtop">
                <div class="left img"><img src="http://tst-ftp.mindmedia.cn/upload{{item.productImg}}" alt="图片"></div>
                <div class="left cont">
                    <div class="name">{{item.productName}}</div>
                    <div class="xiang">出库单号：<span clas="outNo">{{item.outNo}}</span></div>
                    <div class="xiang">已扫：<span class="num">{{item.count}}</span>箱</div>
                    <div class="xiang">来源：<span class="addr">{{item.sendCompanyName}}</span></div>
                    <div class="xiang">创建时间：<span class="time">{{item.createDate}}</span></div>
                </div>
                <button ion-button class="tcheck" (click)="Tcheck(i)">抽检</button>
            </div>
        </div>
    </div>

    <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
        <ion-infinite-scroll-content
                loadingSpinner="bubbles"
                loadingText="加载中...">
        </ion-infinite-scroll-content>
    </ion-infinite-scroll>

    <div class="no-storage" *ngIf="!hasStorage">
        <div class="no-box">
            <i class="img"></i>
            <div>暂无记录</div>
        </div>
    </div>
</ion-content>
